import request from '@/router/axios'

// export function fetchList(query) {
//   return request({
//     url: '/admin/salesIntentionFlowup/page',
//     method: 'get',
//     params: query
//   })
// }

export function addObj(obj) {
  console.log(obj)
  return request({
    url: '/admin/salesIntentionFlowup/',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/admin/salesIntentionFlowup/' + id,
    method: 'get'
  })
}

export function delObj(row) {
  return request({
    url: '/admin/salesIntentionFlowup/' + row.fid,
    method: 'delete'
  })
}

export function putFollowUpObj(obj) {
  return request({
    url: '/admin/salesIntentionFlowup/',
    method: 'put',
    data: obj
  })
}

export function getListByStudent(query) {
  return request({
    url: '/admin/salesIntentionFlowup/page',
    method: 'get',
    params: query
  })
}

export function checkWeight(obj) {
  return request({
    url: '/admin/trainingStudent/checkWeight',
    method: 'post',
    data: obj
  })
}
